[PATCH] [clang] Enforce instantiation of constexpr template functions during non...
authorserge-sans-paille <sguelton@redhat.com>
Sat, 18 Jun 2022 11:48:41 +0000 (13:48 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 7 Sep 2023 22:41:35 +0000 (23:41 +0100)
commitea76f1b002776018bdf0c8adbc8aa69bbb8eeef8
tree923721e80f67f68a6573619b0a5c943d95845724
parent24068e345e9fdbd9aa7dca97bf1f7690126d0fce
[PATCH] [clang] Enforce instantiation of constexpr template functions during non-constexpr evaluation

Otherwise these functions are not instantiated and we end up with an undefined
symbol.

Fix #55560

Differential Revision: https://reviews.llvm.org/D128119

Gbp-Pq: Name basic_string.patch
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/CodeGenCXX/constexpr-late-instantiation.cpp [new file with mode: 0644]
clang/test/SemaCXX/constexpr-late-instantiation.cpp [new file with mode: 0644]